package com.itools.core.ucenter.em;

import com.baomidou.mybatisplus.core.enums.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * authorization_code,implicit,password,client_credentials,refresh_token
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum LoginTypeEnum implements IEnum<Integer> {

    AUTHORIZATION_CODE("authorization_code",0),
    IMPLICIT("implicit",1),
    PASSWORD("password",2),
    CLIENT_CREDENTIALS("client_credentials",3),
    REFRESH_TOKEN("refresh_token",4);

    private String name;
    private Integer value;
}
